package com.common.vo;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.common.entity.Goods;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class GoodsVo extends Goods{
    private String id;

    private String gname;
    private Integer code;
    private String img;
    private  String typename;
    private String gsname;
    private String gbname;
    private String gdname;
    private Integer isDeleted;

    private String goodsId;
    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:dd")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime gmtCreate;
    @ApiModelProperty("更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:dd")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime gmtModified;
}
